{% extends "issues/base.html" %}
{% block content %}
<div id="questions">
{% if latest_question_list %}
	<ul>
	{% for question in latest_question_list %}
		<li class="question"><a href="/issues/question/{{ question.id }}/">{{ question.question|striptags|truncatewords:10 }}</a> 
		({% if question.submitter %}by
		{% firstof question.submitter.get_full_name question.submitter.username %} 
		on {% endif %}{{ question.entry_date|date:"j F Y H:i" }})
		- {{ question.num_replies }} repl{{ question.num_replies|pluralize:"y,ies" }}
		</li>
	{% endfor %}
	</ul>
{% else %}
	<p>No questions are available.</p>
{% endif %}
<form action="/issues/ask/" method="POST">
<p>
{% if error_message %}
{{ error_message }}<br />
{% endif %}
Question:<br />
<textarea name="question" rows="8" cols="80">{{ question }}</textarea><br />
<input type="submit" value="Submit" />
</p>
</form>
</div>
{% endblock %}
